﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="DiemDanh.aspx.cs" Inherits="QuanLyHocSinh_DiemDanh" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
 <script type="text/javascript">

     function Refresh() {
         $.ajax({
             type: "POST",
             url: "NienKhoaList.aspx?Refresh=OK",
             datatype: "json",
             contentType: "application/json; charset=utf-8",
             success: function (data) {
             },
             error: function (request, status, err) {
                 alert("Cập nhật thất bại");
                 alert(err);
             }
         });

     }
 </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" Runat="Server">
 <%--  --%>
<h2>Quản lý điểm danh</h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="toolbarContent" Runat="Server">
                                <li><a class="btn-add iframe" data-dimension="90%|90%" href="DiemDanhDetails.aspx?ac='them'">Thêm</a></li>
                                <li><a class="btn-edit iframe" data-dimension="90%|90%" href="DiemDanhDetails.aspx?ac='sua'">Sửa</a></li>
                                <li><a id="delete" class="btn-delete iframe" data-dimension="800|200" href="~/../../Delete.aspx?ac='DiemDanh'" >Xóa</a></li>
                              <li><a id="Refresh" class="btn-refresh" data-dimension="800|200" href="#" onclick="Refresh()">Nạp dữ liệu</a></li>
                              <li style="color: #FFFFFF">  Chọn  lớp   
     <asp:DropDownList ID="ddlKhoi" CssClass="combobox" runat="server" Width="140px"
        AutoPostBack="True" onselectedindexchanged="ddlKhoi_SelectedIndexChanged"></asp:DropDownList>
 </li>

   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHeader" Runat="Server">


      <table>
                <tr>
                     <th class="col50">STT</th>
                    <th class="col200">Ngày điểm danh</th>
                    <th>Lớp</th>
                 
                </tr>
                 </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="bottomContent" Runat="Server">


  <asp:Repeater ID="rptA" runat="server">
        <HeaderTemplate>
            <table>
        </HeaderTemplate>
        <ItemTemplate>
          
             <tr id="<%#Eval("Id")%>">
                <td class="col50"><%= id++%></td>
                    <td class="col200"><%#ConVertDate(DateTime.Parse(Eval("NgayDiemDanh").ToString()))%></td>
                    <td><%#GetTenLopById(Eval("ClassID").ToString())%></td>
   
                 
        </ItemTemplate>
       <FooterTemplate>
            </table>
       </FooterTemplate>
    </asp:Repeater>

</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="pageContent" Runat="Server">
<cc1:CollectionPager ID="Cpage" runat="server"
            BackNextDisplay="HyperLinks" BackNextLinkSeparator="" 
            FirstText="" HideOnSinglePage="False" LastText="" 
            MaxPages="200" PageNumbersDisplay="Numbers" PageNumbersSeparator="&amp;nbsp;" 
            PageSize="3" PagingMode="QueryString" QueryStringKey="Page" 
            ShowFirstLast="False"  ShowLabel="False" ShowPageNumbers="True" BackText="Trang trước" 
            NextText="Trang tiếp" ResultsLocation="None" ResultsStyle="" LabelStyle="">
            </cc1:CollectionPager>
</asp:Content>




